.CheatsheetDemo {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.CheatsheetDemoBlock {
  background: var(--bg-2);
  border-radius: 6px;
  padding: 12px 0;
  font-size: 12px;
  color: var(--txt-3);
  letter-spacing: 1px;
  margin: 5px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.CheatsheetDemoBlock::before {
  content: attr(data-title);
  position: absolute;
  top: -6px;
  left: 11px;
  background: var(--bg-3);
  color: var(--txt-3);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 5px;
}

.CheatsheetDemoBlockRegex {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: 10px auto;
}

.CheatsheetDemoBlockRegexIcon {
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: var(--txt-1);
  user-select: none;
}

.CheatsheetDemoBlockContent {
  display: inline-block;
  text-align: center;
  width: 100%;
  margin: 10px auto;
  min-height: 46px;
}

.CheatsheetDemoInputWrapper {
  background: var(--bg-3);
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.CheatsheetDemoInput:active,
.CheatsheetDemoInput:focus {
  outline: 1px saddlebrown solid;
}

.CheatsheetDemoResultTag {
  box-shadow: 3px 3px 2px var(--shadow-1);
  min-width: 10px;
  height: 20px;
  margin: 1px 3px;
  color: var(--black);
  background: var(--primary);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.CheatsheetDemoHiglightText {
  padding: 5px;
  color: var(--primary);
}

.CheatsheetDemoHiglightText::before {
  content: "/";
  color: var(--gray);
}

.CheatsheetDemoHiglightText::after {
  content: "/" attr(data-flags);
  color: var(--gray);
}
